package src.messagesToServer;

import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This message tells the server to create a new item
 * @author John Stewart
 */
public class CreateNewItem extends MessageToServer {
	private String itemname;
	
	public CreateNewItem(String itemname) {
		this.itemname = itemname;
	}
	
	@Override
	public MessageToClient execute(String address, Control control) {
		return control.newItem(address, itemname);
	}

}
